package observer;

import java.util.ArrayList;
import java.util.List;
import java.util.Observer;

public class Client {
	public static void main(String[] args) {
		for (String string : args) {
			System.out.println("----"+string);
		}
	    System.out.println("main的args:" + args);
		UndercoverA o1=new UndercoverA();
		UndercoverB o2=new UndercoverB();
	   
		List<Observer> list=new ArrayList<>();
        list.add(o1);
        list.add(o2);
		
		Police subject=new Police(list);
		subject.change("02:25");
		System.out.println("===================由于消息败露，行动时间提前");

		
		subject.change("01:05");
		}
	
}
